package can;

import org.junit.Assert;
import org.junit.Test;

/**
 * Tests the calculateFirePower method by varying the values of each parameter individually.
 * 
 * @author Andrea
 * 
 */
public class TestConnellBotCalculateFirePower {

  
  /**
   * Varies the energy passed into calculateFirePower to cover all equivalence classes.
   */
  @Test
  public void testFirePower() {
    ConnellBot bot = new ConnellBot();
    Assert.assertEquals("FirePower1", 3, (int) bot.calculateFirePower(30));
    Assert.assertEquals("FirePower2", 3, (int) bot.calculateFirePower(16));
    Assert.assertEquals("FirePower3", 2, (int) bot.calculateFirePower(10));
    Assert.assertEquals("FirePower4", 1, (int) bot.calculateFirePower(4));
    Assert.assertEquals("FirePower5", 0, (int) bot.calculateFirePower(0));
  }

}
